package com.frogs.ucenter.service.daoimpl;

import com.frogs.framework.base.dao.BaseDao;
import com.frogs.framework.base.service.daoimpl.BaseServiceImpl;
import com.frogs.ucenter.dao.UserPreferentialCardLogDao;
import com.frogs.ucenter.entity.UserPreferentialCardLog;
import com.frogs.ucenter.service.UserPreferentialCardLogService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Transactional(propagation=Propagation.REQUIRED, rollbackFor=Exception.class) 
@Service("userPreferentialCardLogService")
public class UserPreferentialCardLogServiceImpl extends BaseServiceImpl<UserPreferentialCardLog> implements UserPreferentialCardLogService {
    @Autowired
    private UserPreferentialCardLogDao userPreferentialCardLogDao;

    public UserPreferentialCardLogServiceImpl() {
        super();
    }

    public UserPreferentialCardLogDao getUserPreferentialCardLogDao() {
        return userPreferentialCardLogDao;
    }

    /**
     * Don't remove or edit it.
     */
    @Override
    protected BaseDao<UserPreferentialCardLog> getBaseDao() {
        return userPreferentialCardLogDao;
    }

    public void setUserPreferentialCardLogDao(UserPreferentialCardLogDao userPreferentialCardLogDao) {
        this.userPreferentialCardLogDao = userPreferentialCardLogDao;
    }
}